<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class CorpTagRequest extends MineFormRequest
{
  

    public function personalTagListRules()
    {
        return [
            'robot_id' => 'required'
        ];
    }

    public function selectListRules()
    {
        return [
            'corp_id' => 'required'
        ];
    }

    public function syncCorpTagRules()
    {
        return [
            'corp_id' => 'required'
        ];
    }

    public function syncPersonalTagRules()
    {
        return [
            'robot_id' => 'required'
        ];
    }

    public function syncTagRules()
    {
        return [
            'robot_id' => 'required'
        ];
    }

    public function saveRules()
    {
        return [
            'id' => 'required',
            'robot_id' => 'required',
            'name' => 'required'
        ];
    }

    public function updateRules()
    {
        return [
            'id' => 'required',
            'name' => 'required'
        ];
    }

    /**
     * 删除标签
     * @return string[]
     */
    public function deleteRules()
    {
        return [
            'id' => 'required',
        ];
    }

    public function addContactRules(): array
    {
        return [
            'id' => 'required',
            'contact_ids' => 'required'
        ];
    }

    public function delContactRules(): array
    {
        return [
            'id' => 'required',
            'contact_ids' => 'required'
        ];
    }

    public function moveContactRules(): array
    {
        return [
            'remove_id' => 'required',
            'contact_ids' => 'required',
            'move_tag_ids' => 'required'
        ];
    }

    public function setCorpTagRules(): array
    {
        return [
            'ids' => 'required',
            'contact_ids' => 'required'
        ];
    }
}